package com.chendx.model.seckill.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/****
 * @Author:admin
 * @Description:SeckillGoods构建
 * @Date 2019/6/14 19:13
 *****/
@Data
@TableName("tb_seckill_goods")
public class SeckillGoods implements Serializable{
    private static final long serialVersionUID = 432183095092216817L;
    @TableId(value = "id", type = IdType.AUTO)
	private Long id;//

    @TableField("goods_id")
	private Long goodsId;//spu ID

    @TableField("item_id")
	private Long itemId;//sku ID

    @TableField("title")
	private String title;//标题

    @TableField("small_pic")
	private String smallPic;//商品图片

    @TableField("price")
	private Integer price;//原价格

    @TableField("cost_price")
	private Integer costPrice;//秒杀价格

    @TableField("seller_id")
	private String sellerId;//商家ID

    @TableField("create_time")
	private Date createTime;//添加日期

    @TableField("check_time")
	private Date checkTime;//审核日期

    @TableField("status")
	private String status;//审核状态，0未审核，1审核通过，2审核不通过

    @TableField("start_time")
	private Date startTime;//开始时间

    @TableField("end_time")
	private Date endTime;//结束时间

    @TableField("num")
	private Integer num;//秒杀商品数

    @TableField("stock_count")
	private Integer stockCount;//剩余库存数

    @TableField("introduction")
	private String introduction;//描述
}
